package com.winning.sjzc.zyml.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.winning.sjzc.zyml.dao.PsmsSjyxxMapper;
import com.winning.sjzc.zyml.entity.PsmsSjyxxEntity;
import com.winning.sjzc.zyml.entity.vo.SjjywxxEntity;
import com.winning.sjzc.zyml.service.PsmsSjyxxService;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * description:数据元信息
 *
 * @author yanxf@winning.com.cn
 * @date 2019/08/14 14:55
 */
@Service
public class PsmsSjyxxServiceImpl implements PsmsSjyxxService {

  @Autowired
  private PsmsSjyxxMapper psmsSjyxxMapper;

  @Override
  public List<PsmsSjyxxEntity> queryList(String sjjdm) {
    return psmsSjyxxMapper.queryPsmsSjyxxList(sjjdm);
  }

  @Override
  public IPage<PsmsSjyxxEntity> queryPage(Page<PsmsSjyxxEntity> page, String sjjdm) {
    IPage<PsmsSjyxxEntity> pages = psmsSjyxxMapper.queryPage(page, new QueryWrapper<PsmsSjyxxEntity>()
        .eq("SJJDM", sjjdm));
    return pages;
  }

  @Override
  public IPage<SjjywxxEntity> queryPageSjjywxx(Page<SjjywxxEntity> sjjywxxPage, Map map) {
    return psmsSjyxxMapper.sjjywxxPage(sjjywxxPage,map);
  }

  @Override
  public IPage<PsmsSjyxxEntity> querySjyxxPage(Page<PsmsSjyxxEntity> page, Map map) {
    return psmsSjyxxMapper.sjyxxPage(page,map);
  }
}
